<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.6"/>
<title>GraphPaths: Riferimenti per il file src/main.cc</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">GraphPaths
   &#160;<span id="projectnumber">1</span>
   </div>
   <div id="projectbrief">Creazione di grafi e calcolo dei percorsi minimi</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generato da Doxygen 1.8.6 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Cerca');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Pagina&#160;Principale</span></a></li>
      <li><a href="annotated.html"><span>Classi</span></a></li>
      <li class="current"><a href="files.html"><span>File</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Cerca" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>Elenco&#160;dei&#160;file</span></a></li>
      <li><a href="globals.html"><span>Elementi&#160;dei&#160;file</span></a></li>
    </ul>
  </div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>Tutto</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classi</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>File</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Funzioni</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variabili</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Ridefinizioni di tipo (typedef)</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Definizioni</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Pagine</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#define-members">Definizioni</a> &#124;
<a href="#func-members">Funzioni</a> &#124;
<a href="#var-members">Variabili</a>  </div>
  <div class="headertitle">
<div class="title">Riferimenti per il file main.cc</div>  </div>
</div><!--header-->
<div class="contents">
<div class="textblock"><code>#include &lt;stdlib.h&gt;</code><br/>
<code>#include &lt;gtk/gtk.h&gt;</code><br/>
<code>#include &lt;cassert&gt;</code><br/>
<code>#include &quot;<a class="el" href="src_2grafo_8h_source.html">grafo.h</a>&quot;</code><br/>
<code>#include &quot;<a class="el" href="src_2dijkstra_8h_source.html">dijkstra.h</a>&quot;</code><br/>
<code>#include &quot;<a class="el" href="src_2bellmanford_8h_source.html">bellmanford.h</a>&quot;</code><br/>
</div><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="define-members"></a>
Definizioni</h2></td></tr>
<tr class="memitem:a8de3ed741dadc9c979a4ff17c0a9116e"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="src_2main_8cc.html#a8de3ed741dadc9c979a4ff17c0a9116e">NDEBUG</a></td></tr>
<tr class="separator:a8de3ed741dadc9c979a4ff17c0a9116e"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Funzioni</h2></td></tr>
<tr class="memitem:aa54106540fb0439b5ea3f4c90287d7c2"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="src_2main_8cc.html#aa54106540fb0439b5ea3f4c90287d7c2">aggiorna_grafo</a> ()</td></tr>
<tr class="separator:aa54106540fb0439b5ea3f4c90287d7c2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a80aa2a39bea1494ed725d1dc8bff2db9"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="src_2main_8cc.html#a80aa2a39bea1494ed725d1dc8bff2db9">append_log</a> (const char *text)</td></tr>
<tr class="separator:a80aa2a39bea1494ed725d1dc8bff2db9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ada7a9064f06cc4482b98cc77b37b53a3"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="src_2main_8cc.html#ada7a9064f06cc4482b98cc77b37b53a3">esegui_algoritmo</a> (<a class="el" href="classAlgoritmo.html">Algoritmo</a> *<a class="el" href="classalgoritmo.html">algoritmo</a>)</td></tr>
<tr class="separator:ada7a9064f06cc4482b98cc77b37b53a3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9b64affa1bbefc1c877a46f334262afa"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="src_2main_8cc.html#a9b64affa1bbefc1c877a46f334262afa">salva_con_nome</a> ()</td></tr>
<tr class="separator:a9b64affa1bbefc1c877a46f334262afa"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aaacba861cfab1b9b361769c14254dc14"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="src_2main_8cc.html#aaacba861cfab1b9b361769c14254dc14">carica</a> ()</td></tr>
<tr class="separator:aaacba861cfab1b9b361769c14254dc14"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abe3d9e397a80dbd797c4b421217e6cc3"><td class="memItemLeft" align="right" valign="top">gboolean&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="src_2main_8cc.html#abe3d9e397a80dbd797c4b421217e6cc3">new_handler</a> (GtkWidget *widget, gpointer data)</td></tr>
<tr class="separator:abe3d9e397a80dbd797c4b421217e6cc3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a89b16bd893fb653d417b805484c330b4"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="src_2main_8cc.html#a89b16bd893fb653d417b805484c330b4">help_handler</a> (GtkWidget *widget, gpointer data)</td></tr>
<tr class="separator:a89b16bd893fb653d417b805484c330b4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a756ec8cfc53c11cf222a32297e51cb27"><td class="memItemLeft" align="right" valign="top">gboolean&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="src_2main_8cc.html#a756ec8cfc53c11cf222a32297e51cb27">quit_handler</a> (GtkWidget *widget, gpointer data)</td></tr>
<tr class="separator:a756ec8cfc53c11cf222a32297e51cb27"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1fbf25d6429dcbef0449dac82041a0a6"><td class="memItemLeft" align="right" valign="top">gboolean&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="src_2main_8cc.html#a1fbf25d6429dcbef0449dac82041a0a6">delete_event_handler</a> (GtkWidget *widget, gpointer data)</td></tr>
<tr class="separator:a1fbf25d6429dcbef0449dac82041a0a6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa0adc19f3130213cf89e92b1b27e2ecf"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="src_2main_8cc.html#aa0adc19f3130213cf89e92b1b27e2ecf">save_handler</a> (GtkWidget *widget, gpointer data)</td></tr>
<tr class="separator:aa0adc19f3130213cf89e92b1b27e2ecf"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a89b91923fbcbc6bc01ef8521ea190566"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="src_2main_8cc.html#a89b91923fbcbc6bc01ef8521ea190566">saveas_handler</a> (GtkWidget *widget, gpointer data)</td></tr>
<tr class="separator:a89b91923fbcbc6bc01ef8521ea190566"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a56182549631854996b07be1bd23ff676"><td class="memItemLeft" align="right" valign="top">gboolean&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="src_2main_8cc.html#a56182549631854996b07be1bd23ff676">open_handler</a> (GtkWidget *widget, gpointer data)</td></tr>
<tr class="separator:a56182549631854996b07be1bd23ff676"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a08fb50b462e46311f8be9eb0300b54ec"><td class="memItemLeft" align="right" valign="top">gboolean&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="src_2main_8cc.html#a08fb50b462e46311f8be9eb0300b54ec">esegui_bellmanford_handler</a> (GtkWidget *widget, gpointer data)</td></tr>
<tr class="separator:a08fb50b462e46311f8be9eb0300b54ec"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a86f219b8b763a0fcf78cb0b6885ba892"><td class="memItemLeft" align="right" valign="top">gboolean&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="src_2main_8cc.html#a86f219b8b763a0fcf78cb0b6885ba892">esegui_dijkstra_handler</a> (GtkWidget *widget, gpointer data)</td></tr>
<tr class="separator:a86f219b8b763a0fcf78cb0b6885ba892"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4900e3423d5d431b3aaac73a5f9553ff"><td class="memItemLeft" align="right" valign="top">gboolean&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="src_2main_8cc.html#a4900e3423d5d431b3aaac73a5f9553ff">draw_handler</a> (GtkWidget *widget, cairo_t *cr, gpointer data)</td></tr>
<tr class="separator:a4900e3423d5d431b3aaac73a5f9553ff"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad3e1fa84dad53d15df508c4b3c435b61"><td class="memItemLeft" align="right" valign="top">gboolean&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="src_2main_8cc.html#ad3e1fa84dad53d15df508c4b3c435b61">motion_notify_handler</a> (GtkWidget *widget, GdkEventButton *event, gpointer user_data)</td></tr>
<tr class="separator:ad3e1fa84dad53d15df508c4b3c435b61"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af7834ca874d891213339911a961ca250"><td class="memItemLeft" align="right" valign="top">gboolean&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="src_2main_8cc.html#af7834ca874d891213339911a961ca250">button_press_handler</a> (GtkWidget *widget, GdkEventButton *event, gpointer user_data)</td></tr>
<tr class="separator:af7834ca874d891213339911a961ca250"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a39f42003dfabaf71349aa48d39bed1b8"><td class="memItemLeft" align="right" valign="top">gboolean&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="src_2main_8cc.html#a39f42003dfabaf71349aa48d39bed1b8">button_release_handler</a> (GtkWidget *widget, GdkEventButton *event, gpointer user_data)</td></tr>
<tr class="separator:a39f42003dfabaf71349aa48d39bed1b8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0ddf1224851353fc92bfbff6f499fa97"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="src_2main_8cc.html#a0ddf1224851353fc92bfbff6f499fa97">main</a> (int argc, char *argv[])</td></tr>
<tr class="separator:a0ddf1224851353fc92bfbff6f499fa97"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="var-members"></a>
Variabili</h2></td></tr>
<tr class="memitem:accf1da22b770df554efefd2e83f8ab85"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classGrafo.html">Grafo</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="src_2main_8cc.html#accf1da22b770df554efefd2e83f8ab85">grafo_corrente</a> = NULL</td></tr>
<tr class="separator:accf1da22b770df554efefd2e83f8ab85"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2b43bbd5933adb8b788ebbeac9936030"><td class="memItemLeft" align="right" valign="top">char *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="src_2main_8cc.html#a2b43bbd5933adb8b788ebbeac9936030">file_corrente</a> = NULL</td></tr>
<tr class="separator:a2b43bbd5933adb8b788ebbeac9936030"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<h2 class="groupheader">Documentazione delle definizioni</h2>
<a class="anchor" id="a8de3ed741dadc9c979a4ff17c0a9116e"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define NDEBUG</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<h2 class="groupheader">Documentazione delle funzioni</h2>
<a class="anchor" id="aa54106540fb0439b5ea3f4c90287d7c2"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void aggiorna_grafo </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Forza l'aggiornamento del grafo. Invalida la drawing area. </p>

</div>
</div>
<a class="anchor" id="a80aa2a39bea1494ed725d1dc8bff2db9"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void append_log </td>
          <td>(</td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>text</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Aggiunge il testo specificato alla TextView. </p>
<dl class="params"><dt>Parametri</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">text</td><td>Il testo da aggiungere </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="af7834ca874d891213339911a961ca250"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">gboolean button_press_handler </td>
          <td>(</td>
          <td class="paramtype">GtkWidget *&#160;</td>
          <td class="paramname"><em>widget</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">GdkEventButton *&#160;</td>
          <td class="paramname"><em>event</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">gpointer&#160;</td>
          <td class="paramname"><em>user_data</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Comunica agli oggetti del <a class="el" href="classGrafo.html">Grafo</a> che è stato premuto un pulsante. Se si tratta del pulsante sinistro, gli oggetti si preparano per un eventuale operazione di trascinamento. Se invece si tratta del pulsante destro del mouse, viene controllato se alle coordinate del click esiste già un nodo, se esiste viene creato un arco tra il nodo precedentemente selezionato e quest'ultimo, altrimenti viene creato un nuovo nodo connesso al precedente. Nel caso particolare in cui il nodo precedente e quello selezionato coincidano non viene effettuata alcuna operazione. </p>

</div>
</div>
<a class="anchor" id="a39f42003dfabaf71349aa48d39bed1b8"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">gboolean button_release_handler </td>
          <td>(</td>
          <td class="paramtype">GtkWidget *&#160;</td>
          <td class="paramname"><em>widget</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">GdkEventButton *&#160;</td>
          <td class="paramname"><em>event</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">gpointer&#160;</td>
          <td class="paramname"><em>user_data</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Comunica agli oggetti del <a class="el" href="classgrafo.html">grafo</a> che il pulsante del mouse è stato rilasciato. </p>

</div>
</div>
<a class="anchor" id="aaacba861cfab1b9b361769c14254dc14"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void carica </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Carica un grafo precedentemente salvato. La funzione mostra una finestra di selezione file standard. </p>

</div>
</div>
<a class="anchor" id="a1fbf25d6429dcbef0449dac82041a0a6"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">gboolean delete_event_handler </td>
          <td>(</td>
          <td class="paramtype">GtkWidget *&#160;</td>
          <td class="paramname"><em>widget</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">gpointer&#160;</td>
          <td class="paramname"><em>data</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a class="anchor" id="a4900e3423d5d431b3aaac73a5f9553ff"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">gboolean draw_handler </td>
          <td>(</td>
          <td class="paramtype">GtkWidget *&#160;</td>
          <td class="paramname"><em>widget</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">cairo_t *&#160;</td>
          <td class="paramname"><em>cr</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">gpointer&#160;</td>
          <td class="paramname"><em>data</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Comunica al <a class="el" href="classGrafo.html">Grafo</a> di disegnare se stesso. Il grafo si occuperà di comunicare a tutte le sue istanze di <a class="el" href="classNodo.html">Nodo</a> e <a class="el" href="classArco.html">Arco</a> di disegnarsi </p>

</div>
</div>
<a class="anchor" id="ada7a9064f06cc4482b98cc77b37b53a3"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void esegui_algoritmo </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classAlgoritmo.html">Algoritmo</a> *&#160;</td>
          <td class="paramname"><em>algoritmo</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Esegue un'istanza di <a class="el" href="classAlgoritmo.html">Algoritmo</a>. </p>
<dl class="params"><dt>Parametri</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">algoritmo</td><td>Istanza della classe <a class="el" href="classAlgoritmo.html">Algoritmo</a> da invocare, può essere <a class="el" href="classDijkstra.html">Dijkstra</a> o <a class="el" href="classBellmanFord.html">BellmanFord</a> </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="a08fb50b462e46311f8be9eb0300b54ec"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">gboolean esegui_bellmanford_handler </td>
          <td>(</td>
          <td class="paramtype">GtkWidget *&#160;</td>
          <td class="paramname"><em>widget</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">gpointer&#160;</td>
          <td class="paramname"><em>data</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a class="anchor" id="a86f219b8b763a0fcf78cb0b6885ba892"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">gboolean esegui_dijkstra_handler </td>
          <td>(</td>
          <td class="paramtype">GtkWidget *&#160;</td>
          <td class="paramname"><em>widget</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">gpointer&#160;</td>
          <td class="paramname"><em>data</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a class="anchor" id="a89b16bd893fb653d417b805484c330b4"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void help_handler </td>
          <td>(</td>
          <td class="paramtype">GtkWidget *&#160;</td>
          <td class="paramname"><em>widget</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">gpointer&#160;</td>
          <td class="paramname"><em>data</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a class="anchor" id="a0ddf1224851353fc92bfbff6f499fa97"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int main </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>argc</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">char *&#160;</td>
          <td class="paramname"><em>argv</em>[]&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Funzione principale del programma. Viene caricata l'interfaccia grafica dal file graphpath.glade.</p>
<p>Vengono connessi tutti i segnali:</p>
<p>In particolare i seguenti eventi si occupano di gestire l'interazione con l'interfaccia grafica.</p>
<ul>
<li><a class="el" href="backup_2main_8cc.html#af7834ca874d891213339911a961ca250">button_press_handler</a></li>
<li><a class="el" href="backup_2main_8cc.html#a39f42003dfabaf71349aa48d39bed1b8">button_release_handler</a></li>
<li><a class="el" href="backup_2main_8cc.html#ad3e1fa84dad53d15df508c4b3c435b61">motion_notify_handler</a></li>
<li><a class="el" href="backup_2main_8cc.html#a4900e3423d5d431b3aaac73a5f9553ff">draw_handler</a> </li>
</ul>

</div>
</div>
<a class="anchor" id="ad3e1fa84dad53d15df508c4b3c435b61"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">gboolean motion_notify_handler </td>
          <td>(</td>
          <td class="paramtype">GtkWidget *&#160;</td>
          <td class="paramname"><em>widget</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">GdkEventButton *&#160;</td>
          <td class="paramname"><em>event</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">gpointer&#160;</td>
          <td class="paramname"><em>user_data</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Comunica agli oggetti che il mouse è stato spostato. Se lo spostamento avviene durante la pressione del tasto sinistro, e l'oggetto selezionato è un <a class="el" href="classNodo.html">Nodo</a>, ne vengono aggiornate le coordinate. Se l'oggetto selezionato è un <a class="el" href="classArco.html">Arco</a> allora viene aggiornato il peso dell'arco in base allo scostamento verticale del mouse. Se invece lo spostamento avviene senza la pressione del tasto sinistro, viene aggiornato il <a class="el" href="classGrafo.html">Grafo</a> evidenziando solamente l'eventuale nodo presente sotto al mouse. </p>

</div>
</div>
<a class="anchor" id="abe3d9e397a80dbd797c4b421217e6cc3"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">gboolean new_handler </td>
          <td>(</td>
          <td class="paramtype">GtkWidget *&#160;</td>
          <td class="paramname"><em>widget</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">gpointer&#160;</td>
          <td class="paramname"><em>data</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a class="anchor" id="a56182549631854996b07be1bd23ff676"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">gboolean open_handler </td>
          <td>(</td>
          <td class="paramtype">GtkWidget *&#160;</td>
          <td class="paramname"><em>widget</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">gpointer&#160;</td>
          <td class="paramname"><em>data</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a class="anchor" id="a756ec8cfc53c11cf222a32297e51cb27"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">gboolean quit_handler </td>
          <td>(</td>
          <td class="paramtype">GtkWidget *&#160;</td>
          <td class="paramname"><em>widget</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">gpointer&#160;</td>
          <td class="paramname"><em>data</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a class="anchor" id="a9b64affa1bbefc1c877a46f334262afa"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void salva_con_nome </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Salva il grafo corrente su di un file selezionato. La funzione mostra una finestra di selezione file standard. </p>

</div>
</div>
<a class="anchor" id="aa0adc19f3130213cf89e92b1b27e2ecf"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void save_handler </td>
          <td>(</td>
          <td class="paramtype">GtkWidget *&#160;</td>
          <td class="paramname"><em>widget</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">gpointer&#160;</td>
          <td class="paramname"><em>data</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a class="anchor" id="a89b91923fbcbc6bc01ef8521ea190566"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void saveas_handler </td>
          <td>(</td>
          <td class="paramtype">GtkWidget *&#160;</td>
          <td class="paramname"><em>widget</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">gpointer&#160;</td>
          <td class="paramname"><em>data</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<h2 class="groupheader">Documentazione delle variabili</h2>
<a class="anchor" id="a2b43bbd5933adb8b788ebbeac9936030"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">char* file_corrente = NULL</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a class="anchor" id="accf1da22b770df554efefd2e83f8ab85"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classGrafo.html">Grafo</a>* grafo_corrente = NULL</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generato Mar 1 Lug 2014 08:14:03 per GraphPaths da &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.6
</small></address>
</body>
</html>
